﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Microsoft.Samples.ServiceHosting.StorageClient;

namespace BlobExplorer
{
    /// <summary>
    /// Interaction logic for Connect.xaml
    /// </summary>
    public partial class Connect : Window
    {
        public Connect(StorageAccountInfo info)
        {
            storageInfo = info;

            InitializeComponent();

            CommandBindings.Add(new CommandBinding(Commands.Connect, OnConnect));

            DataContext = this;
        }
        private StorageAccountInfo storageInfo;
        public StorageAccountInfo StorageInfo
        {
            get { return storageInfo; }
        }

        private void OnConnect(object sender, ExecutedRoutedEventArgs e)
        {
            DialogResult = true;
        }
    }
}
